/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.platform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.medusa.gruul.common.core.util.PageUtils;
import com.medusa.gruul.platform.api.entity.AgentWithdrawOrder;
import com.medusa.gruul.platform.model.dto.agent.ApplyWithdrawDto;
import com.medusa.gruul.platform.model.dto.agent.WithdrawOrderAuditDto;
import com.medusa.gruul.platform.model.vo.agent.AdminWithdrawOrdersVo;
import com.medusa.gruul.platform.model.vo.agent.WithdrawOrdersVo;

/**
 * <p>
 * 提现工单表结构 服务类
 * </p>
 *
 * @author whh
 * @since 2020-10-04
 */
public interface IAgentWithdrawOrderService extends IService<AgentWithdrawOrder> {

    /**
     * 代理或渠道商申请提现
     *
     * @param withdrawDto com.medusa.gruul.platform.model.dto.agent.ApplyWithdrawDto
     */
    void applyWithdraw(ApplyWithdrawDto withdrawDto);

    /**
     * 查询提现相关信息
     *
     * @param page        页数
     * @param size        条数
     * @param status      工单状态 0:待审核 1:审核拒绝 2:已打款
     * @param startTime   申请开始时间
     * @param endTime     申请结束时间
     * @param type        提现方式： 1-微信  2-支付宝  3-银行卡
     * @param orderNumber 订单号
     * @return com.medusa.gruul.platform.model.vo.agent.WithdrawOrdersVo
     */
    PageUtils<WithdrawOrdersVo> withdrawOrders(Integer page, Integer size, Integer status, Integer type, String startTime, String endTime, String orderNumber);

    /**
     * 查询提现信息
     *
     * @param page      页数
     * @param size      条数
     * @param status    工单状态 0:待审核 1:审核拒绝 2:已打款
     * @param type      提现方式： 1-微信  2-支付宝  3-银行卡
     * @param startTime 申请开始时间
     * @param endTime   申请结束时间
     * @param search    订单号或者代理账号
     * @param agentType 代理级别 1代理商2直属渠道商3间接渠道商
     * @return com.medusa.gruul.platform.model.vo.agent.AdminWithdrawOrdersVo
     */
    AdminWithdrawOrdersVo adminWithdrawOrders(Integer page, Integer size, Integer status, Integer type, String startTime, String endTime, String search, Integer agentType);

    /**
     * 提现工单操作
     *
     * @param withdrawOrderAuditDto com.medusa.gruul.platform.model.dto.agent.WithdrawOrderAuditDto
     */
    void withdrawOrderAudit(WithdrawOrderAuditDto withdrawOrderAuditDto);

}
